Subjects;
sNames = fieldnames(subject);

% for width = [25 50 100 150 200]
    for s = 1:length(sNames)
        %         if (s==1 || s==2 || s==3) && width == 25

        %% Recalculate TFC Data
        if s~=1
            calculateTfcData(subject.(sNames{s}), []);
        end
        
        %% Rescore the peaks
        cfg = scoreTfcPeaks_defaultCfg;
%         cfg.Smoothing.Width = width;
        scoreTfcPeaks(subject.(sNames{s}), cfg);
        
        %% Plot the new data
%         cfg = plotTfcData_defaultCfg;
%         cfg.Smoothing.Width = width;
%         cfg.SavePath = ['D:\ECoG\Results\TFC\PlotPerRegion\'];
%         plotTfcData(subject.(sNames{s}), cfg);
        %         end        
    end
% end

%% Send an email
setpref('Internet','SMTP_Server','smtp.uu.nl');
setpref('Internet','E_mail','r.j.m.hendriks@uu.nl');
sendmail({'ralph@affy.nl','r.j.m.hendriks@uu.nl','marijeterwal@gmail.com'},'Matlab notification','Work done..');